package com.demo;

public class Demo {
    private String name = "demo";
    private int number = 001;
    public long time = 0;
    private String by = "Hermit_Yoshino";
    public String publicString;
    
    public Demo () {
        System.out.println("This is Demo's no parameter constructors method");
    }
    public Demo (String name) {
        this.name = name;
        System.out.println("This is Demo's String constructors method");
    }
    private Demo (String name, int number) {
        this.name = name;
        this.number = number;
        System.out.println("This is Demo's String and int constructors method");
    }
    
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getNumber() {
        return number;
    }
    public void setNumber(int number) {
        this.number = number;
    }
    
    public void run () {
        System.out.println("run");
    }
    public void run (String fast) {
        System.out.println("run" + fast);
    }
    
    private long time () {
        this.time = System.currentTimeMillis();
        return time;
    }
    
    public static void main(String[] args) {
        System.out.println("main");
    }
}
